package org.ahuanlien.crm.mapper;

import org.ahuanlien.crm.domain.Permission;
import org.ahuanlien.crm.query.QueryObject;

import java.util.List;

public interface PermissionMapper {

    int insert(Permission record);

    List<Permission> selectAll();

    List<Permission> queryForList(QueryObject qo);

    int queryForCount(QueryObject qo);

	List<Permission> selectPermissionByRoleId(Long id);

	List<String> getAllResource();

	List<String> getResourceByEmployeeId(Long id);
}